<template>
  <div>
      <ul class="todo-main">
          <item v-for="item in todos" :key="item.id" :todo="item" />
      </ul>
  </div>
</template>

<script>
import item from './item.vue'
export default {
    name:'List',
    props:['todos', 'checkTodo', 'deleteTodo'],
    components:{item},
}
</script>

<style scoped>
    .todo-main {
        margin-left: 0;
        border: 1ox solid #ddd;
        border-radius: 2px;
        padding: 0;
    }

    .todo-empty {
        height: 40px;
        line-height: 40px;
        border: 1px solid #ddd;
        border-radius: 2px;
        margin-top: 10px;
    }
</style>